xenpaging: handle temporary out-of-memory conditions during page-in
authorKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:23:31 +0000 (14:23 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:23:31 +0000 (14:23 +0000)
commit88267ccbbf47b8ecf7ac081874cc31b347e53412
treef0491dd1d0713520eb91e5c3883acf2cce02f382
parentb063e011a0fcae2842160d3eae273338999c24be
xenpaging: handle temporary out-of-memory conditions during page-in

p2m_mem_paging_prep() should return -ENOMEM if a new page could not be
allocated. This can be handled in xenpaging to retry the
page-in. Right now such condition would stall the guest because the
requested page will not come back, xenpaging simply exits. So
xenpaging could very well retry the allocation forever to rescue the
guest.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
tools/xenpaging/xenpaging.c
xen/arch/x86/mm/p2m.c